package edu.gatech.volt2.drdoommgt.gui;

import java.awt.BorderLayout;
import java.awt.EventQueue;

import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JTextArea;
import javax.swing.JTextField;
import javax.swing.SpringLayout;
import javax.swing.SwingConstants;
import javax.swing.border.EmptyBorder;

public class TreatmentRecordEditView extends JFrame {

	private JPanel contentPane;
	private JTextField textField;
	private JTextField textField_1;
	private JTextField textField_2;
	private JTextField textField_3;
	private JTextField textField_4;
	private JTextField textField_5;

	/**
	 * Launch the application.
	 */
	public static void main(String[] args) {
		EventQueue.invokeLater(new Runnable() {
			public void run() {
				try {
					TreatmentRecordDetails frame = new TreatmentRecordDetails();
					frame.setVisible(true);
				} catch (Exception e) {
					e.printStackTrace();
				}
			}
		});
	}

	/**
	 * Create the frame.
	 */
	public TreatmentRecordEditView() {
		setTitle("Dr. Doom Management");
		setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		setBounds(100, 100, 450, 500);
		contentPane = new JPanel();
		contentPane.setBorder(new EmptyBorder(5, 5, 5, 5));
		contentPane.setLayout(new BorderLayout(0, 0));
		setContentPane(contentPane);
		
		
		JPanel button_panel = new JPanel();
		contentPane.add(button_panel, BorderLayout.SOUTH);
		button_panel.setLayout(new BorderLayout(0, 0));
		
		JButton btnNewButton = new JButton("OK");
		button_panel.add(btnNewButton, BorderLayout.EAST);
		
		JLabel lblNewLabel = new JLabel("Treatment Record Information");
		lblNewLabel.setHorizontalAlignment(SwingConstants.CENTER);
		contentPane.add(lblNewLabel, BorderLayout.NORTH);
		
		JPanel panel = new JPanel();
		contentPane.add(panel, BorderLayout.CENTER);
		SpringLayout sl_panel = new SpringLayout();
		panel.setLayout(sl_panel);
		
		JLabel dateLabelLabel = new JLabel("Date:");
		sl_panel.putConstraint(SpringLayout.NORTH, dateLabelLabel, 10, SpringLayout.NORTH, panel);
		sl_panel.putConstraint(SpringLayout.WEST, dateLabelLabel, 25, SpringLayout.WEST, panel);
		panel.add(dateLabelLabel);
		
		JLabel doctorLabel = new JLabel("Doctor:");
		sl_panel.putConstraint(SpringLayout.NORTH, doctorLabel, 14, SpringLayout.SOUTH, dateLabelLabel);
		sl_panel.putConstraint(SpringLayout.WEST, doctorLabel, 0, SpringLayout.WEST, dateLabelLabel);
		panel.add(doctorLabel);
		
		JLabel nurseLabel = new JLabel("Nurse:");
		sl_panel.putConstraint(SpringLayout.NORTH, nurseLabel, 14, SpringLayout.SOUTH, doctorLabel);
		sl_panel.putConstraint(SpringLayout.WEST, nurseLabel, 0, SpringLayout.WEST, dateLabelLabel);
		panel.add(nurseLabel);
		
		JLabel lblComplaint = new JLabel("Complaint:");
		sl_panel.putConstraint(SpringLayout.NORTH, lblComplaint, 14, SpringLayout.SOUTH, nurseLabel);
		sl_panel.putConstraint(SpringLayout.WEST, lblComplaint, 0, SpringLayout.WEST, dateLabelLabel);
		panel.add(lblComplaint);
		
		JLabel lblNewLabel_3 = new JLabel("Diagnosis:");
		sl_panel.putConstraint(SpringLayout.NORTH, lblNewLabel_3, 14, SpringLayout.SOUTH, lblComplaint);
		sl_panel.putConstraint(SpringLayout.WEST, lblNewLabel_3, 0, SpringLayout.WEST, dateLabelLabel);
		panel.add(lblNewLabel_3);
		
		JLabel lblNewLabel_5 = new JLabel("Follow Up:");
		sl_panel.putConstraint(SpringLayout.NORTH, lblNewLabel_5, 14, SpringLayout.SOUTH, lblNewLabel_3);
		sl_panel.putConstraint(SpringLayout.WEST, lblNewLabel_5, 0, SpringLayout.WEST, dateLabelLabel);
		panel.add(lblNewLabel_5);
		
		JLabel lblNewLabel_7 = new JLabel("Notes:");
		sl_panel.putConstraint(SpringLayout.NORTH, lblNewLabel_7, 14, SpringLayout.SOUTH, lblNewLabel_5);
		sl_panel.putConstraint(SpringLayout.WEST, lblNewLabel_7, 0, SpringLayout.WEST, dateLabelLabel);
		panel.add(lblNewLabel_7);
		
		JLabel lblNewLabel_9 = new JLabel("Prescription:");
		sl_panel.putConstraint(SpringLayout.NORTH, lblNewLabel_9, 54, SpringLayout.SOUTH, lblNewLabel_7);
		sl_panel.putConstraint(SpringLayout.WEST, lblNewLabel_9, 0, SpringLayout.WEST, dateLabelLabel);
		panel.add(lblNewLabel_9);
		
		JLabel lblNewLabel_10 = new JLabel("Lab Work:");
		sl_panel.putConstraint(SpringLayout.NORTH, lblNewLabel_10, 54, SpringLayout.SOUTH, lblNewLabel_9);
		sl_panel.putConstraint(SpringLayout.WEST, lblNewLabel_10, 0, SpringLayout.WEST, dateLabelLabel);
		panel.add(lblNewLabel_10);
		
		textField = new JTextField();
		sl_panel.putConstraint(SpringLayout.NORTH, textField, 4, SpringLayout.NORTH, panel);
		sl_panel.putConstraint(SpringLayout.EAST, textField, -31, SpringLayout.EAST, panel);
		panel.add(textField);
		textField.setColumns(10);
		
		textField_1 = new JTextField();
		sl_panel.putConstraint(SpringLayout.NORTH, textField_1, 2, SpringLayout.SOUTH, textField);
		sl_panel.putConstraint(SpringLayout.WEST, textField_1, 57, SpringLayout.EAST, doctorLabel);
		sl_panel.putConstraint(SpringLayout.EAST, textField_1, -31, SpringLayout.EAST, panel);
		sl_panel.putConstraint(SpringLayout.WEST, textField, 0, SpringLayout.WEST, textField_1);
		panel.add(textField_1);
		textField_1.setColumns(10);
		
		textField_2 = new JTextField();
		sl_panel.putConstraint(SpringLayout.NORTH, textField_2, 2, SpringLayout.SOUTH, textField_1);
		sl_panel.putConstraint(SpringLayout.WEST, textField_2, 63, SpringLayout.EAST, nurseLabel);
		sl_panel.putConstraint(SpringLayout.EAST, textField_2, -31, SpringLayout.EAST, panel);
		panel.add(textField_2);
		textField_2.setColumns(10);
		
		textField_3 = new JTextField();
		sl_panel.putConstraint(SpringLayout.NORTH, textField_3, 2, SpringLayout.SOUTH, textField_2);
		sl_panel.putConstraint(SpringLayout.WEST, textField_3, 35, SpringLayout.EAST, lblComplaint);
		sl_panel.putConstraint(SpringLayout.EAST, textField_3, -31, SpringLayout.EAST, panel);
		panel.add(textField_3);
		textField_3.setColumns(10);
		
		textField_4 = new JTextField();
		sl_panel.putConstraint(SpringLayout.NORTH, textField_4, 2, SpringLayout.SOUTH, textField_3);
		sl_panel.putConstraint(SpringLayout.WEST, textField_4, 37, SpringLayout.EAST, lblNewLabel_3);
		sl_panel.putConstraint(SpringLayout.EAST, textField_4, -31, SpringLayout.EAST, panel);
		panel.add(textField_4);
		textField_4.setColumns(10);
		
		textField_5 = new JTextField();
		sl_panel.putConstraint(SpringLayout.NORTH, textField_5, 2, SpringLayout.SOUTH, textField_4);
		sl_panel.putConstraint(SpringLayout.WEST, textField_5, 38, SpringLayout.EAST, lblNewLabel_5);
		sl_panel.putConstraint(SpringLayout.EAST, textField_5, -31, SpringLayout.EAST, panel);
		panel.add(textField_5);
		textField_5.setColumns(10);
		
		JTextArea txtrNotes = new JTextArea();
		sl_panel.putConstraint(SpringLayout.NORTH, txtrNotes, 8, SpringLayout.SOUTH, textField_5);
		sl_panel.putConstraint(SpringLayout.WEST, txtrNotes, 63, SpringLayout.EAST, lblNewLabel_7);
		sl_panel.putConstraint(SpringLayout.EAST, txtrNotes, -31, SpringLayout.EAST, panel);
		panel.add(txtrNotes);
		
		JTextArea txtrNotes_1 = new JTextArea();
		sl_panel.putConstraint(SpringLayout.SOUTH, txtrNotes, -10, SpringLayout.NORTH, txtrNotes_1);
		sl_panel.putConstraint(SpringLayout.WEST, txtrNotes_1, 0, SpringLayout.WEST, txtrNotes);
		sl_panel.putConstraint(SpringLayout.EAST, txtrNotes_1, -31, SpringLayout.EAST, panel);
		sl_panel.putConstraint(SpringLayout.NORTH, txtrNotes_1, 260, SpringLayout.NORTH, panel);
		sl_panel.putConstraint(SpringLayout.SOUTH, txtrNotes_1, -103, SpringLayout.SOUTH, panel);
		panel.add(txtrNotes_1);
		
		JTextArea txtrNotes_2 = new JTextArea();
		sl_panel.putConstraint(SpringLayout.NORTH, txtrNotes_2, 10, SpringLayout.SOUTH, txtrNotes_1);
		sl_panel.putConstraint(SpringLayout.WEST, txtrNotes_2, 0, SpringLayout.WEST, txtrNotes);
		sl_panel.putConstraint(SpringLayout.SOUTH, txtrNotes_2, -33, SpringLayout.SOUTH, panel);
		sl_panel.putConstraint(SpringLayout.EAST, txtrNotes_2, -31, SpringLayout.EAST, panel);
		panel.add(txtrNotes_2);
		
		
		


	}
}
